//
//  SectionHeadView.m
//  NoneCar
//
//  Created by DongSen on 2018/7/13.
//  Copyright © 2018年 董森森. All rights reserved.
//

#import "SectionHeadView.h"

@implementation SectionHeadView
+ (SectionHeadView*)loadView{
    NSArray * viewArray =[[NSBundle mainBundle] loadNibNamed:@"SectionHeadView" owner:self options:nil];
    SectionHeadView * view  = [viewArray firstObject];
    return view;
}
- (IBAction)ButtonClicked:(UIButton *)sender{
    [UIView animateWithDuration:1 animations:^{
        CGPoint centers = CGPointMake(sender.center.x, self.lineView.center.y);
        self.lineView.center = centers;
        [self layoutIfNeeded];
    } completion:^(BOOL finished) {
        if (sender==self.accountButton){
            self.PhoneLogin = NO;
        }
        else{
            self.PhoneLogin = YES;
        }
        self.block(self.phoneButton);
    }];
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
